home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000049_icon-group-sender _Mon Jun 1 16:29:41 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id QAA08266
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 1 Jun 1998 16:29:40 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA07315; Mon, 1 Jun 1998 16:29:34 -0700
  7. Date: Mon, 01 Jun 98 18:53:29 -0400
  8. Message-Id: <9806012253.AA0156@valinet.com>
  9. From: Paul Abrahams <abrahams@acm.org>
  10. To: jeffery@cs.utsa.edu
  11. Cc: abrahams@acm.org, icon-group@optima.CS.Arizona.EDU
  12. In-Reply-To: <199806012211.RAA06897@segfault.cs.utsa.edu> (message from
  13.     Clinton Jeffery on Mon, 1 Jun 1998 17:11:58 -0500)
  14. Subject: Re: Annoying things
  15. Reply-To: abrahams@acm.org
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 1062
  19.  
  20. >>>>> On Mon, 1 Jun 1998 17:11:58 -0500, Clinton Jeffery <jeffery@segfault.cs.utsa.edu> said:
  21.  
  22. |Paul> Given the variances among operating systems, perhaps there ought
  23. |Paul> to be a convention that the first space-delimited item in each
  24. |Paul> line produced by open(dirname) is the filename.
  25.  
  26. |Clint> This is not a bad suggestion.  Certainly the format of the
  27. |Clint> string should follow conventions that preserve portability.
  28. |Clint> Some operating systems (Macintosh, and recent versions of
  29. |Clint> Windows) allow spaces in filenames!
  30.  
  31. I care less about what the convention is than that there be one.  You're
  32. right, of course, about the space-in-file-names issue, but that can be
  33. an issue even in making sense of the returned value within a single OS
  34. context.  Quoting the filename is one solution, although even that isn't
  35. adequate if filenames can contain quotes.  The two alternatives that
  36. come to mind that are completely general are (a) using quotes, with
  37. internal quotes doubled, and (b) using backslashes to quote the next
  38. character.
  39.  
  40. Paul Abrahams
  41.  
  42.  
  43.